package com.tangruitao.bean;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 这个类的作者是13536
 * 开发日期:2021/12/27
 **/
@Data
public class Detail {
    private Integer did;
    private String ip;
    private String eare;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    private String uid;

    public Detail(String ip, String eare, Date time, String uid) {
        this.ip = ip;
        this.eare = eare;
        this.time = time;
        this.uid = uid;
    }

    public Detail() {
    }

    @Override
    public String toString() {
        return "Detail{" +
                "did=" + did +
                ", ip='" + ip + '\'' +
                ", eare='" + eare + '\'' +
                ", time=" + time +
                ", uid=" + uid +
                '}';
    }
}
